package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.CycleMapper;
import com.wanmait.recruitment.pojo.Cycle;
import com.wanmait.recruitment.service.CycleService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class CycleServiceImpl implements CycleService {
    @Resource
    private CycleMapper cycleMapper;

    @Override
    public void insert(Cycle object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Cycle object) {

    }

    @Override
    public Cycle findById(Integer id) {
        return null;
    }

    @Override
    @Cacheable("cycleCache")
    public List<Cycle> findAll() {
        return cycleMapper.selectList();
    }

    @Override
    public List<Cycle> findAll(Cycle object) {
        return null;
    }

    @Override
    public PageInfo<Cycle> findPage(int pageNum, int pageSize) {
        return null;
    }
}
